//
//  CategoryModel.m
//  FoodCorner
//
//  Created by Summer on 16/3/1.
//  Copyright © 2016年 zhangchao. All rights reserved.
//

#import "CategoryModel.h"
#import "ImageArrayModel.h"
@implementation CategoryModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *,id> *)keyedValues
{
    _imtro = keyedValues[@"imtro"];
    _ingredients = keyedValues[@"ingredients"];
    _albums = keyedValues[@"albums"];
    _steps = keyedValues[@"steps"];
    _title = keyedValues[@"title"];
    _tags = keyedValues[@"tags"];
    _burden = keyedValues[@"burden"];
    _id = keyedValues[@"id"];
    _stepsArray = [NSMutableArray array];
    for (NSDictionary *dict in _steps) {
        ImageArrayModel *model = [ImageArrayModel new];
        [model setValuesForKeysWithDictionary:dict];
        [_stepsArray addObject:model];
    }
    
}
-(NSString *)description
{
    return  [NSString stringWithFormat:@"%@--%@",_title,_imtro];
}
@end
